package com.ny.dao;
import com.ny.entity.Order;

import java.sql.SQLException;
import java.util.List;

public interface OrderDao {
    int addOrder(Order order) throws SQLException, ClassNotFoundException;

    List<Order> findAllOrder() throws SQLException;

    boolean updateOrder(int orderId, int number) throws SQLException;
    boolean deleteOrder(int orderId) throws SQLException;
}
